headerbar: Don't leak internal widgets
authorKalev Lember <klember@redhat.com>
Mon, 7 Dec 2015 16:21:51 +0000 (17:21 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Dec 2015 03:15:25 +0000 (22:15 -0500)
commit9103707922aede3f00d62ca127779efc0acd2cba
tree5e821d199eca04b0fdfcc35a85de15674d6e5925
parent7d1a0b075d2d466c5917f3c95476c4077955e68b
headerbar: Don't leak internal widgets

Make sure to clean up internal widgets in destroy, as these aren't
cleaned up when GtkContainer walks the childrens list in
gtk_container_destroy().

This also fixes a gedit crash as reported in
https://bugzilla.redhat.com/show_bug.cgi?id=1288669

https://bugzilla.gnome.org/show_bug.cgi?id=759132
gtk/gtkheaderbar.c